package com.nzf.vote.service;

import com.nzf.vote.entity.Vote;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nzf.vote.mapper.VoteMapper;
import com.nzf.vote.model.dto.RankingDto;
import com.nzf.vote.model.dto.VoteDto;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author nzf
 * @since 2022-07-25
 */
public interface IVoteService extends IService<Vote> {
    List<VoteDto> VoteList();
    List<Vote>  getVoteByUserId(Integer userId);
    VoteDto getVoteById(Integer id);
    int deleteVote(Integer id);
    RankingDto getVoteRanking();
}
